<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>伸缩盒</title>
    <style>
        html,body{
            height: 100%;
            margin: 0;
            padding: 0;
        }
        section, nav{
            width: 100%;
            min-width: 320px;
            max-width: 540px;
            margin: 0 auto;
        }

        nav {
        }

        section img {
            width: 100%;
        }

        nav .row:nth-child(1) {
            background-color: #F9514C;
        }

        nav .row:nth-child(2) {
            background-color: #4288ea;
        }

        nav .row:nth-child(3) {
            background-color: #30bb9d;
        }

        nav .row:nth-child(1) .row3:nth-child(1) {
            background: transparent url(images/grid-nav-items-hotel.png) center bottom no-repeat;
            background-size: contain;
        }
        nav .row:nth-child(2) .row3:nth-child(1) {
            background: transparent url(images/grid-nav-items-flight.png) center bottom no-repeat;
            background-size: contain;
        }
        nav .row:nth-child(3) .row3:nth-child(1) {
            background: transparent url(images/grid-nav-items-travel.png) center bottom no-repeat;
            background-size: contain;
        }
        .row {
            margin-left: 10px;
            margin-right: 10px;
            height: 90px;
            display: flex;
            border-radius: 6px;
            margin-top: 8px;
        }
        .row3 {
            display: flex;
            flex: 1;
            flex-direction: column;
            border-left: 1px solid white;
        }

        .row .row3:nth-child(1) {
            border-left: none;
        }

        .row img {
            width: 100%;
        }
        .row3 a {
            line-height: 45px;
            flex: 1;
            text-align: center;
            color: white;
            text-decoration: none;
            font-size: 18px;
        }
        .row3 a:first-child {
            border-bottom: 1px solid white;
        }


    </style>
</head>
<body>
<section>
    <img src="https://dimg04.c-ctrip.com/images/70020x000000lmx7a35FA_1242_248_25.jpg"/>
</section>
<nav>
    <div class="row">
        <div class="row3">
        </div>
        <div class="row3">
            <a href="#">海外酒店</a>
            <a href="#">特价酒店</a>
        </div>
        <div class="row3">

            <a href="#">海外酒店</a>
            <a href="#">特价酒店</a>
        </div>
    </div>

    <div class="row">
        <div class="row3">
        </div>
        <div class="row3">
            <a href="#">海外酒店</a>
            <a href="#">特价酒店</a>
        </div>
        <div class="row3">

            <a href="#">海外酒店</a>
            <a href="#">特价酒店</a>
        </div>
    </div>

    <div class="row">
        <div class="row3">

        </div>
        <div class="row3">
            <a href="#">海外酒店</a>
            <a href="#">特价酒店</a>
        </div>
        <div class="row3">

            <a href="#">海外酒店</a>
            <a href="#">特价酒店</a>
        </div>
    </div>
</nav>
</body>
</html>
